package com.book.domain;

public class Heart {
	private String heartTotal;
	private int hPlus;
	private int hMinus;
	private String hCode;
	private String mCode;
	private String hDetail;
	public Heart(){		
	}
	public String getHeartTotal() {
		return heartTotal;
	}
	public int gethPlus() {
		return hPlus;
	}
	public void sethPlus(int hPlus) {
		this.hPlus = hPlus;
	}
	public int gethMinus() {
		return hMinus;
	}
	public void sethMinus(int hMinus) {
		this.hMinus = hMinus;
	}
	public String gethCode() {
		return hCode;
	}
	public void sethCode(String hCode) {
		this.hCode = hCode;
	}
	public String getmCode() {
		return mCode;
	}
	public void setmCode(String mCode) {
		this.mCode = mCode;
	}
	public String gethDetail() {
		return hDetail;
	}
	public void sethDetail(String hDetail) {
		this.hDetail = hDetail;
	}
	public void setHeartTotal(String heartTotal) {
		this.heartTotal = heartTotal;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((hCode == null) ? 0 : hCode.hashCode());
		result = prime * result + ((hDetail == null) ? 0 : hDetail.hashCode());
		result = prime * result + hMinus;
		result = prime * result + hPlus;
		result = prime * result
				+ ((heartTotal == null) ? 0 : heartTotal.hashCode());
		result = prime * result + ((mCode == null) ? 0 : mCode.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Heart other = (Heart) obj;
		if (hCode == null) {
			if (other.hCode != null)
				return false;
		} else if (!hCode.equals(other.hCode))
			return false;
		if (hDetail == null) {
			if (other.hDetail != null)
				return false;
		} else if (!hDetail.equals(other.hDetail))
			return false;
		if (hMinus != other.hMinus)
			return false;
		if (hPlus != other.hPlus)
			return false;
		if (heartTotal == null) {
			if (other.heartTotal != null)
				return false;
		} else if (!heartTotal.equals(other.heartTotal))
			return false;
		if (mCode == null) {
			if (other.mCode != null)
				return false;
		} else if (!mCode.equals(other.mCode))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Heart [heartTotal=" + heartTotal + ", hPlus=" + hPlus
				+ ", hMinus=" + hMinus + ", hCode=" + hCode + ", mCode="
				+ mCode + ", hDetail=" + hDetail + "]";
	}
	
	
	

}
